package com.yipao.db.domain.goods.vo.mobile;


import com.yipao.db.domain.goods.vo.BaseReq;
import com.yipao.db.util.DeleteStatusConstant;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;

/**
 * 设备产品，请求对象
 *
 * @author tianhao
 */
@EqualsAndHashCode(callSuper = false)
@Data
@NoArgsConstructor
public class DevGoodsReqVo extends BaseReq {
    /**
     * 分类id
     */
    private Integer categoryId;
    /**
     * 关键字
     */
    private String keyword;
    /**
     * 设备id
     */
    private Integer devId;
    /**
     * 用户id
     */
    private Integer userId;

    private String sort;
    private String ord;
    private Integer deleted;

    public DevGoodsReqVo(Integer categoryId, String keyword, Integer devId, Integer page, Integer limit, String sort, String ord) {
        this.categoryId = categoryId;
        this.keyword = keyword;
        this.devId = devId;
        super.setPage(page);
        super.setLimit(limit);
        this.sort = sort;
        this.ord = ord;
        this.deleted = DeleteStatusConstant.NOT_DELETED;
    }
}
